﻿using System.Collections.ObjectModel;
using System.Runtime.Serialization;

namespace OpenWaves.EPiServer.BrightcoveVideoCloudProperty
{
    [DataContract]
    public class VideoResults
    {
        [DataMember(Name = "items")]
        public Collection<Video> Items { get; set; }

        [DataMember(Name = "page_number")]
        public int PageNumber { get; set; }

        [DataMember(Name = "page_size")]
        public int PageSize { get; set; }

        [DataMember(Name = "total_count")]
        public int TotalCount { get; set; }

        public static VideoResults Empty
        {
            get
            {
                return new VideoResults
                    {
                        Items = new Collection<Video>(),
                        PageNumber = 0,
                        PageSize = 0,
                        TotalCount = 0
                    };
            }
        }
    }
}